import { createRouter, createWebHistory } from "vue-router";
import layout from "../views/layout/index.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "index",
      component: layout,
      redirect: "home",
    },
    {
      path: "/home",
      name: "home",
      component: () => import("../views/home/HomeView.vue"),
    },
    {
      path: "/about",
      name: "about",
      component: () => import("../views/about/AboutView.vue"),
    },
    {
      path: "/signature",
      name: "signature",
      component: () => import("../views/signature/index.vue"),
    },
  ],
});

export default router;
